#ifndef SNAKEGAME_H
#define SNAKEGAME_H
//#include "utility.h"
#include <iostream>
using namespace std;
struct node
{
	char ch;
	int x;
	int y;
	node* next;
	node* prev;
	node(char c='*',int X=0 , int Y=0, node*n=NULL, node*p=NULL)
	{
		this->x=X;
		this->y=Y;
		this->next=n;
		this->prev=p;
		this->ch=c;
	}
};

class snakeGame
{
	node* head;
	node* tail;
public:
	snakeGame( );
	~snakeGame(void);
	void addToTail(int , int );
	void print();
	void nextMove ( );
	void createFruit();
	void onCollision();
	void move();
	void hurdle();
	void startGame();
};
#endif
